<?php
/**
 * Created by PhpStorm.
 * User: robot
 * Date: 2018-04-17
 * Time: 22:31
 */

namespace app\base\model;


use think\Model;

class User extends Model
{
    public function getUserstatAttr($value)
    {
        $status=[1=>'管理员',2=>'普通用户'];
        return $status[$value];
    }

}